<?php

	class DashboardController extends AppController
	{
		var $name = 'Dashboard';
		var $uses = array('Shop');
		
		function index()
		{
			$this->pageTitle = __('Panel', true);
			
			$shops = $this->Shop->find(
				'all',
				array(
					'conditions' => array(
						'Shop.user_id' => $this->Session->read('User.id')
					),
					'recursive' => -1
				)
			);
			
			$this->set(compact('shops'));
		}
		
		function settings()
		{
			
		}
	}

?>